<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta name="keywords" content="hexo, autumn" />
    <title>
        iOS开发
    </title>
    <!-- favicon -->
    
    <link rel="icon" href="https://cdn.jsdelivr.net/gh/frontendsophie/hexo-theme-autumn@1.0.0/source/img/favicon.ico" />
     <link rel="stylesheet" href="/blog/css/style.css">

    <!-- highlight -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/github-gist.min.css" />
    <script src="//cdn.bootcss.com/highlight.js/9.2.0/highlight.min.js"></script>
    <script>
        hljs.initHighlightingOnLoad()
    </script>
    <script src="https://cdn.jsdelivr.net/gh/frontendsophie/hexo-infinite-scroll@2.0.0/dist/main.js"></script>

    <script>
        infiniteScroll()

        window.addEventListener('DOMContentLoaded', function () {
            const [
                mainTitle,
                mobileMenu,
                mobileMainTitle,
                mobileMenuBtn,
                ipadMenuBtn,
                aside,
                closeBtn,
            ] = getEle(
                '#main-title',
                '.mobile-menu',
                '.mobile-menu h3',
                '.mobile-menu button',
                '.ipad-menu',
                'aside',
                'aside .close',
            )
            const io = new IntersectionObserver(entries => {
                if (entries[0].intersectionRatio <= 0) {
                    mobileMainTitle.classList.remove('invisibile')
                } else {
                    mobileMainTitle.classList.add('invisibile')
                }
            })
            io.observe(mainTitle)

            clickToggleAside(mobileMenuBtn)
            clickToggleAside(ipadMenuBtn)
            clickToggleAside(closeBtn, false)

            const isMenuVisible = window.getComputedStyle(mobileMenu).display !== 'none'
            if (isMenuVisible) document.body.style.background = 'none'

            function getEle(...args) {
                return args.map(arg => document.querySelector(arg))
            }

            function clickToggleAside(btn, show = true) {
                btn.addEventListener('click', function () {
                    if (show) {
                        aside.style.display = 'block'
                    } else {
                        aside.style.display = 'none'
                    }
                })
            }
        })
    </script>
</head>

<body style="background: url(https://cdn.jsdelivr.net/gh/frontendsophie/hexo-theme-autumn@1.0.0/source/img/button-bg.png) #f3f3f3">
    <div class="container">
        <header class="header">
    <nav class="mobile-menu" style="background: url(https://cdn.jsdelivr.net/gh/frontendsophie/hexo-theme-autumn@1.0.0/source/img/button-bg.png) #f3f3f3">
        <h3 class="invisibile">
            <a href="/blog/" class="logo">
                iOS开发
            </a>
        </h3>
        <button class="menu">menu</button>
    </nav>

    <button class="ipad-menu menu">menu</button>

    <h1 class="title" id="main-title">
        <a href="/blog/" class="logo">
            iOS开发
        </a>
    </h1>
    <h2 class="desc">
        
    </h2>

    <div class="links">
        <ul>
            
            <li>
                <a href="https://github.com/FrontendSophie" target="_blank" rel="noopener">
                    Github
                </a>
            </li>
            
            <li>
                <a href="https://www.linkedin.com/in/frontendsophie/" target="_blank" rel="noopener">
                    LinkedIn
                </a>
            </li>
            
        </ul>
    </div>
</header>
        <main class="main">
            <article class="post">
    
    
    
    <h2 class="post-title">
        UIActivityViewController的使用说明
    </h2>
    <ul class="post-date">
        <li>
            2019-11-29
        </li>
        <li>
            selinaSun
        </li>
    </ul>
    <div class="post-content">
        <h2 id="UIActivity-ActivityType类型对应"><a href="#UIActivity-ActivityType类型对应" class="headerlink" title="UIActivity.ActivityType类型对应"></a>UIActivity.ActivityType类型对应</h2><h3 id="addToReadingList-加入阅读列表"><a href="#addToReadingList-加入阅读列表" class="headerlink" title="addToReadingList //加入阅读列表"></a>addToReadingList //加入阅读列表</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> addToReadingList: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="saveToCameraRoll-存储图片"><a href="#saveToCameraRoll-存储图片" class="headerlink" title="saveToCameraRoll //存储图片"></a>saveToCameraRoll //存储图片</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> addToReadingList: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="assignToContact-指定给联系人"><a href="#assignToContact-指定给联系人" class="headerlink" title="assignToContact //指定给联系人"></a>assignToContact //指定给联系人</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> assignToContact: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="airDrop-空投"><a href="#airDrop-空投" class="headerlink" title="airDrop //空投"></a>airDrop //空投</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> airDrop: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="copyToPasteboard-复制到剪贴板"><a href="#copyToPasteboard-复制到剪贴板" class="headerlink" title="copyToPasteboard //复制到剪贴板"></a>copyToPasteboard //复制到剪贴板</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> copyToPasteboard: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="mail-邮件"><a href="#mail-邮件" class="headerlink" title="mail //邮件"></a>mail //邮件</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> mail: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="message-短信"><a href="#message-短信" class="headerlink" title="message //短信"></a>message //短信</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> message: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="openInIBooks-从IBooks打开"><a href="#openInIBooks-从IBooks打开" class="headerlink" title="openInIBooks //从IBooks打开"></a>openInIBooks //从IBooks打开</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> openInIBooks: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="postToFacebook-发送给Facebook"><a href="#postToFacebook-发送给Facebook" class="headerlink" title="postToFacebook //发送给Facebook"></a>postToFacebook //发送给Facebook</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> postToFacebook: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="postToFlickr-发送给Flickr"><a href="#postToFlickr-发送给Flickr" class="headerlink" title="postToFlickr //发送给Flickr"></a>postToFlickr //发送给Flickr</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> postToFlickr: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="postToTencentWeibo-发送给腾讯微博"><a href="#postToTencentWeibo-发送给腾讯微博" class="headerlink" title="postToTencentWeibo //发送给腾讯微博"></a>postToTencentWeibo //发送给腾讯微博</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> postToTencentWeibo: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="postToTwitter-发送给Twitter"><a href="#postToTwitter-发送给Twitter" class="headerlink" title="postToTwitter //发送给Twitter"></a>postToTwitter //发送给Twitter</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> postToTwitter: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="postToVimeo-发送给Vimeo"><a href="#postToVimeo-发送给Vimeo" class="headerlink" title="postToVimeo //发送给Vimeo"></a>postToVimeo //发送给Vimeo</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> postToVimeo: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="postToWeibo-发送给新浪微博"><a href="#postToWeibo-发送给新浪微博" class="headerlink" title="postToWeibo //发送给新浪微博"></a>postToWeibo //发送给新浪微博</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> postToWeibo: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="print-打印"><a href="#print-打印" class="headerlink" title="print //打印"></a>print //打印</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> <span class="built_in">print</span>: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>
<h3 id="markupAsPDF-导出PDF"><a href="#markupAsPDF-导出PDF" class="headerlink" title="markupAsPDF //导出PDF"></a>markupAsPDF //导出PDF</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">static <span class="built_in">let</span> markupAsPDF: UIActivity.ActivityType</span><br></pre></td></tr></table></figure>

    </div>
</article>
        </main>
        <aside class="aside">
            <div class="close"></div>
            <section class="aside-section">
                
    <h1>Categories</h1>

    

            </section>
            <section class="aside-section">
                
    <h1>Archives</h1>

    <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2020/">2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/blog/archives/2019/">2019</a></li></ul>


            </section>
            <section class="aside-section tag">
                
    <h1>Tags</h1>

    

            </section>
        </aside>
    </div>
</body>

</html>